package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserLTPMainRoleSkin;
import com.yanqu.road.entity.player.UserSkin;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @Author wpj
 * @Date 2020/9/1
 */
public class UserSkinBusiness {
    public static Map<Integer, UserSkin> getUserSkinMap(long userId) {
        return DaoHelper.getUserSkinDaoImpl().getUserSkinMap(userId);
    }

    public static boolean addUserSkin(UserSkin userSkin) {
        return DaoHelper.getUserSkinDaoImpl().add(userSkin);
    }

    public static boolean updateUserSkin(UserSkin userSkin) {
        return DaoHelper.getUserSkinDaoImpl().update(userSkin);
    }

    public static Map<Integer, UserLTPMainRoleSkin> getUserLTPMainRoleSkinMap(long userId) {
        return DaoHelper.getUserLTPMainRoleSkinDaoImpl().getUserLTPMainRoleSkinMap(userId);
    }

    public static boolean addUserLTPMainRoleSkin(UserLTPMainRoleSkin userLTPMainRoleSkin) {
        return DaoHelper.getUserLTPMainRoleSkinDaoImpl().add(userLTPMainRoleSkin);
    }

    public static boolean updateUserLTPMainRoleSkin(UserLTPMainRoleSkin userLTPMainRoleSkin) {
        return DaoHelper.getUserLTPMainRoleSkinDaoImpl().update(userLTPMainRoleSkin);
    }
}
